<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/1/28
 * Time: 11:03
 */

namespace app\model;


use think\Model;

class Test extends Model
{
//        protected $schema=[
//            'id'        =>      'int'
//        ];
        protected static function Init(){
            parent::init();
        }

        public function getTestName(){

            $res = $this->find(1);

            return $res ;
        }

        public function getDescAttr($value){
            echo $value;
        }
}